<template>
    <div id="background">
        <el-container >
            <el-header id="jinBiHeadPosition">
                <el-row type="flex" style="height:80%;display:flex;align-items: flex-end">
                    <el-col :xs="2" :sm="2" :md="2" :offset="1" class="imgCol">
                        <img v-bind:src="backIcon" class="backSize" @click="back" />
                    </el-col>
                    <el-col :xs="6" :sm="6" :md="6" :offset="6" class="imgCol">
                        <span class="titleSize">金币</span>
                    </el-col>
                </el-row>
            </el-header>
            <el-main id="jinBiMain">
                <el-row class="jbText">我们正努力开发中，敬请期待！</el-row>
                <img class="jbJinDu" src="../../assets/img/mine/jindu.png">
            </el-main>
        </el-container>
    </div>
</template>

<script>
import backIcon from '../../assets/img/mine/back.png'
export default {
    data(){
        return{
            backIcon:backIcon,
            normalHeight:document.documentElement.clientHeight,
        }
    },
    mounted(){
        var bg = document.getElementById("background");
       // this.normalHeight=document.documentElement.clientHeight;
        console.log("height:"+this.normalHeight);
        bg.style.height = this.normalHeight+"px";
        bg.style.backgroundColor = "#FFFFFF"
        bg.style.margin = "0px";

        var head=document.getElementById("jinBiHeadPosition");
        var headHeight=this.normalHeight/30 *4 ;
        console.log("headHeight:"+headHeight);
        head.style.height=headHeight+"px";

        var main=document.getElementById("jinBiMain");
        var mainHeight=this.normalHeight/30 *24 ;
        main.style.height=mainHeight+"px";
    },
    methods:{
        back(){
            console.log("back:");
            this.$router.go(-1);
        },
    }
    
}

</script>

<style>
#jinBiHeadPosition {
  background-color: #53cdf5;
}
.backSize{
    height: 26px;
}
.titleSize{
    font-size:1.125em;
    color:#ffffff
}
@media screen and (max-height: 600px){
  .backSize{
      height: 22px;
  }
  .titleSize{
      font-size: 1em;
  }
}
.jbJinDu{
    position: absolute;
    top:40%;
    left: 15%;
    width: 248px;

}
.jbText{
    position: absolute;
    top:30%;
    left:15%;
    font-size: 18px;
    color: #707070
}
#jinBiMain{
    background: #FFFFFF;
}
</style>
